package com.bangbang.blog.service.impl;

import com.bangbang.blog.pojo.TbIntegral;
import com.bangbang.blog.mapper.TbIntegralMapper;
import com.bangbang.blog.service.ITbIntegralService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 积分账号信息表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-12
 */
@Service
public class TbIntegralServiceImpl extends ServiceImpl<TbIntegralMapper, TbIntegral> implements ITbIntegralService {

    @Autowired
    private TbIntegralMapper tbIntegralMapper;

    @Override
    public void insert(TbIntegral tbIntegral) {
        tbIntegralMapper.insert(tbIntegral);
    }

    @Override
    public void delete(Long ralId) {
        tbIntegralMapper.deleteById(ralId);
    }

    @Override
    public void select(Long ralId) {
        tbIntegralMapper.selectById(ralId);
    }
}
